Removing Menu Buttons(Copy, Print)

reneresendez

New Member
Joined
Jun 27, 2002
Messages
43
Is it possible to remove the (Copy, Paste & Print) Menu buttons in an Excel file, so that these functions will not work.

Thank you for your assistance on this question.

Rene Resendez
reneresendez@onebox.com
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi Rene,

I don't have a routine to hand for Copy, Paste etc, but you should be able to modify these routines that disable options within the 'File' menu. Eg. change 'File@ to 'Edit' and adjust the item descriptions.<pre>
Sub DisableFileChoices()

' excludes Close, Save, Save As, Recently used, Exit

With Application.CommandBars("File").Controls

.item("New...").Enabled = False
.item("Open...").Enabled = False
.item("Save as HTML...").Enabled = False
.item("Save Workspace...").Enabled = False
.item("Page Setup...").Enabled = False
.item("Print Area").Enabled = False
.item("Print Preview").Enabled = False
.item("Print...").Enabled = False
.item("Send To").Enabled = False
.item("Properties").Enabled = False

End With

End Sub

Sub EnableFileChoices()

With Application.CommandBars("File").Controls

.item("New...").Enabled = True
.item("Open...").Enabled = True
.item("Save as HTML...").Enabled = True
.item("Save Workspace...").Enabled = True
.item("Page Setup...").Enabled = True
.item("Print Area").Enabled = True
.item("Print Preview").Enabled = True
.item("Print...").Enabled = True
.item("Send To").Enabled = True
.item("Properties").Enabled = True

End With

End Sub</pre>

HTH

PS Do you also want to disable the shortcut methods and the right-click mouse methods?


_________________<font color="blue"> «««<font color="red">¤<font color="blue"><font size=+1>Richie</font><font color="red">¤<font color="blue"> »»»</font>

caffeine_sample.gif
</gif>
This message was edited by Richie(UK) on 2002-08-02 10:58
 
Upvote 0
If you actually want to delete the icons from the toolbar, right click on the icon. In the drop-down box, left click on Customize. Right click again on the icon you want to remove and left click on Delete in the drop-down box.
 
Upvote 0

Forum statistics

Threads
1,215,128
Messages
6,123,204
Members
449,090
Latest member
bes000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top